<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<TITLE>HH_HELP_CONTEXT command</TITLE>
<style>@import url(coUA.css);</style>
<link disabled rel="stylesheet" href="htmlhelp.css">
</head>

<BODY>

<H1>HH_HELP_CONTEXT command</H1>

<p>Displays a help topic based on a mapped topic ID.</p>

<P>If a window type is not specified, a default window type is used. If the window type or default window type is open, the help topic replaces the current topic in the window. </P>

<br>
<table border=1 cellpadding=3 cellspacing=0 width=100%>
<TR VALIGN="top">
<TH><I>pszFile</I></TH>
<TH><I>dwData</I></TH>
</TR>

<TR VALIGN="top">
<TD>
Specifies the compiled help (.chm) file that contains the mapping information. 

<p>To specify a defined window type, insert a greater-than (&gt;) character followed by the name of the window type.</P>
</TD>
<TD>
Specifies the numeric ID of the topic to display. 
<P>You must map symbolic IDs of dialog boxes to numeric IDs in the [MAP] section of your project (.hhp) file.</P>

<!---this is overkill:
<P>If the symbolic IDs in your [MAP] section do not match the HTML file names in the [FILES] section, then you must alias the symbolic IDs in the [ALIAS] section of your project (.hhp) file. For example, if your map section contains the entry
<p><pre>#define   MyDialogBox   1050</pre></p>
<p>When you pass the numeric ID <code>1050</code> to <b>HH_HELP_CONTEXT</b>, HTML Help automatically searches for an HTML file called <code>MyDialogBox.htm</code> or <code>MyDialogBox.html</code>. In most cases, you will need to alias the symbolic ID <code>MyDialogBox</code> to a valid HTML file name as in the following example:
<p><pre><code>MyDialogBox=TopicFile.htm</code></pre></p-->
</TD>
</TR>
</TABLE>
<BR>

<H2>Example</H2>
<pre><code>
<br>HtmlHelp(
<br>          GetDesktopWindow(),
<br>          "help.chm",
<br>          HH_HELP_CONTEXT,
<br>          5000) ;
</pre></code>

<H2>Comments</H2>
<ul>
<li>A default help window contains only the Topic pane and is not a three-pane Help Viewer.</li>
</ul>


<H2>See also</H2>
<p><a href="cmd_hh_display_topic.htm">HH_DISPLAY_TOPIC</a></p>

<br>
<table border="0" cellpadding="0" cellspacing="4">
<tr>
<td valign="top"><a href="ov_about_htmlhelp_commands.htm"><img src="home.gif" width=20 height=18 alt="link to overview topic" border="0"></a>
</td>
<td><a href="ov_about_htmlhelp_commands.htm">About commands</A>
</td>
</tr>
<tr>
<td>&nbsp;
</td>
</tr>
</table>

<br>
<!--start keywords--->

<!--end keywords--->

</BODY>
</HTML>
